#include <stdio.h>
#include <omp.h>

// unroll_partial_remainder 函数
void unroll_partial_remainder(int n, int A[])
{
    #pragma omp parallel for
    for (int i = 0; i < n; ++i)
    {
        A[i] = i;
    }
}

int main() {
    int n = 10;
    int A[10];

    // 调用 unroll_partial_remainder 函数
    unroll_partial_remainder(n, A);

    // 输出数组元素以验证结果
    printf("数组元素如下:\n");
    for (int i = 0; i < n; ++i) {
        printf("A[%d] = %d\n", i, A[i]);
    }

    return 0;
} 